<?php


include_once '../vendor/autoload.php';

use Workerman\Worker;

$http_worker = new Worker('websocket://127.0.0.1:8899');
$http_worker->count = 4;
$http_worker->onMessage = function($conn, $data) {
    $conn->send('hello world!');
};

Worker::runAll();
